package com.example.module_mine.login.loginnet

import com.example.lib_net.NetModule
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Qualifier
import javax.inject.Singleton


@Module
@InstallIn(SingletonComponent::class)
object MineNetMoudle {

    @Provides
    @Singleton
    @CommonMineApi
    fun provideMineApi(@NetModule.CommonRetrofit retrofit: Retrofit):MineApi{
        return retrofit.create(MineApi::class.java)
    }

//    @Provides
//    @Singleton
//    @SignMainApi
//    fun provideSignMainApi(@NetModule.SignRetrofit retrofit: Retrofit):api{
//        return retrofit.create(api::class.java)
//    }

    @Qualifier
    @Retention(AnnotationRetention.RUNTIME)
    annotation class CommonMineApi


}